<layout name="layout"/>
<style>
    body {
        background: #fff;
    }
</style>
<div class="row">
    <div class="col-lg-12">
        <ul class="breadcrumb">
            <li><a href="{:U('application/subscribemgr')}"><i class="icon-home"></i> 应用中心</a></li>
            <volist name="navPage" id="navi">
                <li><a href="{$navi.url}">{$navi.name}</a></li>
            </volist>
        </ul>
    </div>
</div>
<div class="row">
    <div class="col-lg-12">
        <section class="panel">
            <form id="add_application" >
                <input type="hidden" name="product_id" id="product_id" value="{$info.product_id}">
                <div class="form-group clearfix mb10">
                    <label for="product_name" class="col-sm-1 control-label mt10 p0 tr course_name" style="font-weight:normal;">产品名称：</label>
                    <div class="col-sm-11 ">
                        <input type="text" value="{$info['product_name']}" class="form-control wp40 dis-inline" id="product_name" name="product_name" placeholder="请输入产品名称" maxlength="200">
                    </div>
                </div>
                <div class="form-group clearfix mb10">
                    <label class="col-sm-1 control-label mt10 p0 tr" style="font-weight:normal;">所属应用：</label>
                    <div class="col-sm-11 ">
                        <select name="application_id" id="application_id" class="form-control wp40 dis-inline">
                            <option value="0" selected  hidden>请选择所属应用</option>
                            <volist name="applicationList" id="val" key="k">
                                <option value="{$val.application_id}">{$val.application_name}</option>
                            </volist>
                        </select>
                    </div>
                </div>
                <div class="form-group clearfix mb10">
                    <label for="product_channel" class="col-sm-1 control-label mt10 p0 tr course_name" style="font-weight:normal;">产品渠道：</label>
                    <div class="col-sm-11 ">
                        <input type="text" value="{$info['product_channel']}" class="form-control wp40 dis-inline" id="product_channel" name="product_channel" placeholder="请输入产品渠道" maxlength="200">
                    </div>
                </div>
                <div class="form-group clearfix mb10">
                    <label for="pay" class="col-sm-1 control-label mt10 p0 tr course_name" style="font-weight:normal;">产品金额：</label>
                    <div class="col-sm-11 ">
                        <input type="text" value="{$info['pay']}" class="form-control wp40 dis-inline" id="pay" name="pay" placeholder="请输入金额" onkeyup="this.value=this.value.replace(/\D/g,'');" maxlength="200">
                    </div>
                </div>
                <div class="form-group clearfix mb10">
                    <label for="product_time" class="col-sm-1 control-label mt10 p0 tr course_name" style="font-weight:normal;">会员时长：</label>
                    <div class="col-sm-11 ">
                        <input type="text" value="{$info['product_time']}" class="form-control wp40 dis-inline" id="product_time" name="product_time" placeholder="请输入会员时长" maxlength="200">
                    </div>
                </div>
                <div class="form-group clearfix mb10">
                    <label class="col-sm-1 control-label mt10 p0 tr" style="font-weight:normal;">产品状态：</label>
                    <div class="col-sm-11 mt5">
                        <label style="font-weight: normal">
                            <input type="radio" <eq name="info['state']" value="1">checked</eq> name="state" value="1" > 使用中
                        </label>
                        <label style="font-weight: normal;margin-left:20px;">
                            <input type="radio" <eq name="info['state']" value="2">checked</eq> name="state" value="2" > 禁止中
                        </label>
                    </div>
                </div>
            </form>
            <div class="tc">
                <button type="button" class="h30 w200 m20 button button-primary button-rounded button-tiny btn-workCalendar save_c_list" onclick="application.editSubscribe();" >修  改</button>
            </div>
            <div class="clearfix"></div>
        </section>
    </div>
</div>
<script src="__PUBLIC__/js/module/module.application.js"></script>
<script>
    var APP = "__APP__";
    var application = new Application();

    var application_id = {$info.application_id};

    $(function () {
        application.init();
        $("#application_id").val(application_id);
    });
</script>